Storybook で見かけた .mdx にご挨拶(アンタ誰?)
MDX #ってなんだよ
GitHub - mdx-js/mdx: Markdown for the component era
MDX is an authorable format that lets you seamlessly write JSX in your markdown documents. You can import components, such as interactive charts or alerts, and embed them within your content. This makes writing long-form content with components a blast. 🚀
Markdown for the component era | MDX
MDX lets you use JSX in your markdown content. You can import components, such as interactive charts or alerts, and embed them within your content. This makes writing long-form content with components a blast. 🚀
lol mdx is so good
— @dan_abramov
Dan Abramov a.k.a. Dan 先生からのお墨付きも
まあ、JSX と Markdown の組み合わせくらいの認識で良さそうだな
code:mdx
import {Chart} from './snowfall.js'
export const year = 2023
# Last year’s snowfall
In {year}, the snowfall was above average.
It was followed by a warm spring which caused
flood conditions in many of the nearby rivers.
<Chart color="#fcb32c" year={year} />
MDC は Nuxt チームが作ってるみたいで Vue とかでも使えるのか